package cn.deng.middleware.dynamic.thread.pool.sdk.domain;

import cn.deng.middleware.dynamic.thread.pool.sdk.domain.model.entity.ThreadPoolConfigEntity;

import java.util.List;

/**
 * @author: Dengjingwen deng
 * @description: 动态线程池服务
 * @create: 2025-05-05
 */
public interface IDynamicThreadPoolService {

    /**
     * 查询线程池列表
     * @return
     */
    List<ThreadPoolConfigEntity> queryThreadPoolList();

    /**
     * 根据名称查询线程池配置
     * @param threadPoolName
     * @return
     */
    ThreadPoolConfigEntity queryThreadPoolConfigByName(String threadPoolName);

    /**
     * 更新线程池配置
     * @param threadPoolConfigEntity
     */
    void updateThreadPoolConfig(ThreadPoolConfigEntity threadPoolConfigEntity);
}
